package com.zjc.yohoshop.mvp.contract;

import com.zjc.lib_core.mvp.model.IModel;
import com.zjc.lib_core.mvp.view.IView;
import com.zjc.yohoshop.bean.BaseEntity;
import com.zjc.yohoshop.bean.HomeMenuEntity;

import io.reactivex.Observable;

/**
 * 首页订阅接口
 * 要被presenter关联的IView以及IPresenter
 * */
public interface MainContract {

    //继承自IView的接口对应首页接口返回数据，给界面对应回调显示
    interface IMaianView extends IView{
        void success(BaseEntity baseEntity);
    }

    //继承自IModel的接口对应首页中网络接口请求数据,像presenter提供，presenter通过iview设置到界面
    interface IMainModel extends IModel{
        Observable<HomeMenuEntity> homemenu();
    }
}
